package com.ruoyi.job.service;


import com.ruoyi.job.domain.YqgBarBills;
import com.ruoyi.job.mapper.YqgBarBillsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 吧台账单Service业务层处理
 *
 * @author dr
 * @date 2023-04-17
 */
@Service
public class YqgBarBillsServiceImpl implements IYqgBarBillsService
{
    @Autowired
    private YqgBarBillsMapper yqgBarBillsMapper;

    /**
     * 查询吧台账单
     *
     * @param ID 吧台账单主键
     * @return 吧台账单
     */
    @Override
    public YqgBarBills selectYqgBarBillsByID(Long ID)
    {
        return yqgBarBillsMapper.selectYqgBarBillsByID(ID);
    }

    /**
     * 查询吧台账单列表
     *
     * @param yqgBarBills 吧台账单
     * @return 吧台账单
     */
    @Override
    public List<YqgBarBills> selectYqgBarBillsList(YqgBarBills yqgBarBills)
    {
        return yqgBarBillsMapper.selectYqgBarBillsList(yqgBarBills);
    }
    /**
     * 查询吧台账单列表
     * 根据具体某一天查询记录
     * @param yqgBarBills 吧台账单
     * @return 吧台账单
     */
    @Override
    public List<YqgBarBills> selectYqgBarBillsListbychecktime(YqgBarBills yqgBarBills)
    {
        return yqgBarBillsMapper.selectYqgBarBillsListbychecktime(yqgBarBills);
    }

    /**
     * 新增吧台账单
     *
     * @param yqgBarBills 吧台账单
     * @return 结果
     */
    @Override
    public int insertYqgBarBills(YqgBarBills yqgBarBills)
    {
        return yqgBarBillsMapper.insertYqgBarBills(yqgBarBills);
    }

    /**
     * 修改吧台账单
     *
     * @param yqgBarBills 吧台账单
     * @return 结果
     */
    @Override
    public int updateYqgBarBills(YqgBarBills yqgBarBills)
    {
        return yqgBarBillsMapper.updateYqgBarBills(yqgBarBills);
    }



    /**
     * 批量删除吧台账单
     *
     * @param IDs 需要删除的吧台账单主键
     * @return 结果
     */
    @Override
    public int deleteYqgBarBillsByIDs(Long[] IDs)
    {
        return yqgBarBillsMapper.deleteYqgBarBillsByIDs(IDs);
    }

    /**
     * 删除吧台账单信息
     *
     * @param ID 吧台账单主键
     * @return 结果
     */
    @Override
    public int deleteYqgBarBillsByID(Long ID)
    {
        return yqgBarBillsMapper.deleteYqgBarBillsByID(ID);
    }


}
